package com.example.administrator.tenyuanpackage.home.view;

import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.example.administrator.tenyuanpackage.R;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * Created by zwq on 2017/2/27.
 */

public class HomeHotVIew extends LinearLayout {


    @BindView(R.id.nvzhuang)
    TextView nvzhuang;
    @BindView(R.id.jujia)
    TextView jujia;
    @BindView(R.id.muying)
    TextView muying;
    @BindView(R.id.gengduo)
    TextView gengduo;

    public HomeHotVIew(Context context) {
        super(context);
        init();
    }

    public HomeHotVIew(Context context, AttributeSet attrs) {
        super(context, attrs);
        init();
    }

    private void init() {
        LayoutInflater.from(getContext())
                .inflate(R.layout.home_hot, this, true);
        ButterKnife.bind(this, this);

    }

    @OnClick({R.id.nvzhuang, R.id.jujia, R.id.muying, R.id.gengduo})
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.nvzhuang:
                break;
            case R.id.jujia:
                break;
            case R.id.muying:
                break;
            case R.id.gengduo:
                break;
        }
    }
}
